package com.pine.admin.modules.system.controller;

import com.pine.admin.modules.system.service.ExcelPoiService;

import com.pine.common.dto.Page;
import com.pine.common.dto.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: Pine
 * @Date: 2018/7/13 下午12:07
 * @Email:771190883@qq.com
 */

@RestController
@RequestMapping("/excelPort")
public class ExcelExpeortController {


    @Autowired
    private ExcelPoiService excelPoiService;

    /**
     * 导出
     * */
    @ResponseBody
    @RequestMapping(value = "/coInfo", method = RequestMethod.GET)
    public Result shopInfo(HttpServletRequest request, HttpServletResponse response, Page page, Object record) {

        excelPoiService.ExportAllShopOrderInfo(request, response,page,record);

        return new Result(true, "导出Excel成功");

    }

}
